﻿using System;

//自定义命名空间
using DreamCube.Foundation.Basic.Objects;

namespace DreamCube.Foundation.WMI
{
    public class FileSystemSizeDataConvert : IDataConvert<FileSystemSize>
    {
        public FileSystemSize Convert(Object input)
        {
            if (input == null) return null;
            return new FileSystemSize(System.Convert.ToUInt64(input), 
                        FileSystemSize.HardDiskSizeType.B);
        }
    }
}
